<?php
namespace models\repositories;
use Doctrine\ORM\EntityRepository;
use entities;
class TaxItemRepository extends EntityRepository {
	public function testIterate(){
		echo "<br>iterasi x";
	}
	public function findAllAsObject(){
		$qb = $this->_em->createQueryBuilder();		
		$qb->select('TaxItem')
		   ->from('models\entities\TaxItem', 'Invoice')
		;
		
		$query = $qb->getQuery();
		return $query->getResult();
	}

}

